<div class="page-body">
    <div class="row">
        <div class="widget">
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" role="form"
                          action="{:U('doEdit',array('book_id'=>$data['book_id']))}"
                          method="post" enctype="multipart/form-data">
                        <div class="form-group">
                            <label for="sm" class="col-sm-3 control-label no-padding-right">ID：</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="book_id" name="book_id" value="{$data.book_id}" disabled="disabled" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sm" class="col-sm-3 control-label no-padding-right">书名：</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="sm" name="sm" value="{$data.sm}" disabled="disabled" required>
                            </div>
                        </div>
                        <div class="form-group   ">
                            <label class="col-sm-3 control-label no-padding-right">新华码（唯一码）：</label>
                            <div class="col-sm-3">
                                <input type="number" name="spbs" class="form-control" value="{$data.spbs}" disabled="disabled" required>
                            </div>
                        </div>
                        <div class="form-group   ">
                            <label class="col-sm-3 control-label no-padding-right">条码：</label>
                            <div class="col-sm-3">
                                <input type="number" name="tm" class="form-control" disabled="disabled" value="{$data.tm}">
                            </div>
                        </div>
                        <div class="form-group   ">
                            <label class="col-sm-3 control-label no-padding-right">借阅库存：</label>
                            <div class="col-sm-3">
                                <input type="number" name="stock_rent" class="form-control" value="{$data.stock_rent}">
                            </div>
                            <div class="col-sm-6">
                                <span class="danger"></span>
                            </div>
                        </div>
                        <div class="form-group   ">
                            <label class="col-sm-3 control-label no-padding-right">购书库存：</label>
                            <div class="col-sm-3">
                                <input type="number" name="stock_buy" class="form-control" value="{$data.stock_buy}">
                            </div>
                            <div class="col-sm-6">
                                <span class="danger"></span>
                            </div>
                        </div>
                        <div class="form-group   ">
                            <label class="col-sm-3 control-label no-padding-right">目前总库存：</label>
                            <div class="col-sm-3">
                                <input type="number" name="stock_total" class="form-control" value="{$data['stock_rent']+$data['stock_buy']}" readonly="true">
                            </div>
                            <div class="col-sm-6">
                                <span class="danger"></span>
                            </div>
                        </div>
                        <div class="form-group  ">
                            <div class="col-sm-offset-3 col-sm-10">
                                <button type="submit" class="btn btn-primary">提 交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script>

</script>